
import std.random;
import std.math;
import std.stdio:writef, writefln;

void main(){
//(imie, jestDobrymStudentem, dobrzeSieUczy, chodziNaWyklady, pije, pali, przeklina, grzecznyNaMiescie, chodziSpacPoDobranocce)
	float[] wagi = [1.0, 0.3, -0.2, -0.5, -0.3, 0.3, 0.7];
	int number = 35;
	float activationPoint = -0.2;

	for(int i = 0; i < number; i++){
		int[7] nowy;
		float sum = 0.0f;
		for(int j = 0; j < 7; j++){
			nowy[j] = rand() % 2;
			if(nowy[j] == 0)
				nowy[j] = -1;
			sum += wagi[j] * cast(float)nowy[j];
		}
		if(sum >= activationPoint)
			writef("(\"\",\t1");
		else
			writef("(\"\",\t-1");
		for(int j = 0; j < 7; j++)
			writef(",\t%d", nowy[j]);
		writefln(");");
	}
}

